package com.cn.demo.entity;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class InternshipLogExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public InternshipLogExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andInternshipLogIdIsNull() {
            addCriterion("internship_log_id is null");
            return (Criteria) this;
        }

        public Criteria andInternshipLogIdIsNotNull() {
            addCriterion("internship_log_id is not null");
            return (Criteria) this;
        }

        public Criteria andInternshipLogIdEqualTo(String value) {
            addCriterion("internship_log_id =", value, "internshipLogId");
            return (Criteria) this;
        }

        public Criteria andInternshipLogIdNotEqualTo(String value) {
            addCriterion("internship_log_id <>", value, "internshipLogId");
            return (Criteria) this;
        }

        public Criteria andInternshipLogIdGreaterThan(String value) {
            addCriterion("internship_log_id >", value, "internshipLogId");
            return (Criteria) this;
        }

        public Criteria andInternshipLogIdGreaterThanOrEqualTo(String value) {
            addCriterion("internship_log_id >=", value, "internshipLogId");
            return (Criteria) this;
        }

        public Criteria andInternshipLogIdLessThan(String value) {
            addCriterion("internship_log_id <", value, "internshipLogId");
            return (Criteria) this;
        }

        public Criteria andInternshipLogIdLessThanOrEqualTo(String value) {
            addCriterion("internship_log_id <=", value, "internshipLogId");
            return (Criteria) this;
        }

        public Criteria andInternshipLogIdLike(String value) {
            addCriterion("internship_log_id like", value, "internshipLogId");
            return (Criteria) this;
        }

        public Criteria andInternshipLogIdNotLike(String value) {
            addCriterion("internship_log_id not like", value, "internshipLogId");
            return (Criteria) this;
        }

        public Criteria andInternshipLogIdIn(List<String> values) {
            addCriterion("internship_log_id in", values, "internshipLogId");
            return (Criteria) this;
        }

        public Criteria andInternshipLogIdNotIn(List<String> values) {
            addCriterion("internship_log_id not in", values, "internshipLogId");
            return (Criteria) this;
        }

        public Criteria andInternshipLogIdBetween(String value1, String value2) {
            addCriterion("internship_log_id between", value1, value2, "internshipLogId");
            return (Criteria) this;
        }

        public Criteria andInternshipLogIdNotBetween(String value1, String value2) {
            addCriterion("internship_log_id not between", value1, value2, "internshipLogId");
            return (Criteria) this;
        }

        public Criteria andInternshipIdIsNull() {
            addCriterion("internship_id is null");
            return (Criteria) this;
        }

        public Criteria andInternshipIdIsNotNull() {
            addCriterion("internship_id is not null");
            return (Criteria) this;
        }

        public Criteria andInternshipIdEqualTo(String value) {
            addCriterion("internship_id =", value, "internshipId");
            return (Criteria) this;
        }

        public Criteria andInternshipIdNotEqualTo(String value) {
            addCriterion("internship_id <>", value, "internshipId");
            return (Criteria) this;
        }

        public Criteria andInternshipIdGreaterThan(String value) {
            addCriterion("internship_id >", value, "internshipId");
            return (Criteria) this;
        }

        public Criteria andInternshipIdGreaterThanOrEqualTo(String value) {
            addCriterion("internship_id >=", value, "internshipId");
            return (Criteria) this;
        }

        public Criteria andInternshipIdLessThan(String value) {
            addCriterion("internship_id <", value, "internshipId");
            return (Criteria) this;
        }

        public Criteria andInternshipIdLessThanOrEqualTo(String value) {
            addCriterion("internship_id <=", value, "internshipId");
            return (Criteria) this;
        }

        public Criteria andInternshipIdLike(String value) {
            addCriterion("internship_id like", value, "internshipId");
            return (Criteria) this;
        }

        public Criteria andInternshipIdNotLike(String value) {
            addCriterion("internship_id not like", value, "internshipId");
            return (Criteria) this;
        }

        public Criteria andInternshipIdIn(List<String> values) {
            addCriterion("internship_id in", values, "internshipId");
            return (Criteria) this;
        }

        public Criteria andInternshipIdNotIn(List<String> values) {
            addCriterion("internship_id not in", values, "internshipId");
            return (Criteria) this;
        }

        public Criteria andInternshipIdBetween(String value1, String value2) {
            addCriterion("internship_id between", value1, value2, "internshipId");
            return (Criteria) this;
        }

        public Criteria andInternshipIdNotBetween(String value1, String value2) {
            addCriterion("internship_id not between", value1, value2, "internshipId");
            return (Criteria) this;
        }

        public Criteria andContentIsNull() {
            addCriterion("content is null");
            return (Criteria) this;
        }

        public Criteria andContentIsNotNull() {
            addCriterion("content is not null");
            return (Criteria) this;
        }

        public Criteria andContentEqualTo(String value) {
            addCriterion("content =", value, "content");
            return (Criteria) this;
        }

        public Criteria andContentNotEqualTo(String value) {
            addCriterion("content <>", value, "content");
            return (Criteria) this;
        }

        public Criteria andContentGreaterThan(String value) {
            addCriterion("content >", value, "content");
            return (Criteria) this;
        }

        public Criteria andContentGreaterThanOrEqualTo(String value) {
            addCriterion("content >=", value, "content");
            return (Criteria) this;
        }

        public Criteria andContentLessThan(String value) {
            addCriterion("content <", value, "content");
            return (Criteria) this;
        }

        public Criteria andContentLessThanOrEqualTo(String value) {
            addCriterion("content <=", value, "content");
            return (Criteria) this;
        }

        public Criteria andContentLike(String value) {
            addCriterion("content like", value, "content");
            return (Criteria) this;
        }

        public Criteria andContentNotLike(String value) {
            addCriterion("content not like", value, "content");
            return (Criteria) this;
        }

        public Criteria andContentIn(List<String> values) {
            addCriterion("content in", values, "content");
            return (Criteria) this;
        }

        public Criteria andContentNotIn(List<String> values) {
            addCriterion("content not in", values, "content");
            return (Criteria) this;
        }

        public Criteria andContentBetween(String value1, String value2) {
            addCriterion("content between", value1, value2, "content");
            return (Criteria) this;
        }

        public Criteria andContentNotBetween(String value1, String value2) {
            addCriterion("content not between", value1, value2, "content");
            return (Criteria) this;
        }

        public Criteria andSubmitDateIsNull() {
            addCriterion("submit_date is null");
            return (Criteria) this;
        }

        public Criteria andSubmitDateIsNotNull() {
            addCriterion("submit_date is not null");
            return (Criteria) this;
        }

        public Criteria andSubmitDateEqualTo(Date value) {
            addCriterion("submit_date =", value, "submitDate");
            return (Criteria) this;
        }

        public Criteria andSubmitDateNotEqualTo(Date value) {
            addCriterion("submit_date <>", value, "submitDate");
            return (Criteria) this;
        }

        public Criteria andSubmitDateGreaterThan(Date value) {
            addCriterion("submit_date >", value, "submitDate");
            return (Criteria) this;
        }

        public Criteria andSubmitDateGreaterThanOrEqualTo(Date value) {
            addCriterion("submit_date >=", value, "submitDate");
            return (Criteria) this;
        }

        public Criteria andSubmitDateLessThan(Date value) {
            addCriterion("submit_date <", value, "submitDate");
            return (Criteria) this;
        }

        public Criteria andSubmitDateLessThanOrEqualTo(Date value) {
            addCriterion("submit_date <=", value, "submitDate");
            return (Criteria) this;
        }

        public Criteria andSubmitDateIn(List<Date> values) {
            addCriterion("submit_date in", values, "submitDate");
            return (Criteria) this;
        }

        public Criteria andSubmitDateNotIn(List<Date> values) {
            addCriterion("submit_date not in", values, "submitDate");
            return (Criteria) this;
        }

        public Criteria andSubmitDateBetween(Date value1, Date value2) {
            addCriterion("submit_date between", value1, value2, "submitDate");
            return (Criteria) this;
        }

        public Criteria andSubmitDateNotBetween(Date value1, Date value2) {
            addCriterion("submit_date not between", value1, value2, "submitDate");
            return (Criteria) this;
        }

        public Criteria andInternshipLogStateIsNull() {
            addCriterion("internship_log_state is null");
            return (Criteria) this;
        }

        public Criteria andInternshipLogStateIsNotNull() {
            addCriterion("internship_log_state is not null");
            return (Criteria) this;
        }

        public Criteria andInternshipLogStateEqualTo(Integer value) {
            addCriterion("internship_log_state =", value, "internshipLogState");
            return (Criteria) this;
        }

        public Criteria andInternshipLogStateNotEqualTo(Integer value) {
            addCriterion("internship_log_state <>", value, "internshipLogState");
            return (Criteria) this;
        }

        public Criteria andInternshipLogStateGreaterThan(Integer value) {
            addCriterion("internship_log_state >", value, "internshipLogState");
            return (Criteria) this;
        }

        public Criteria andInternshipLogStateGreaterThanOrEqualTo(Integer value) {
            addCriterion("internship_log_state >=", value, "internshipLogState");
            return (Criteria) this;
        }

        public Criteria andInternshipLogStateLessThan(Integer value) {
            addCriterion("internship_log_state <", value, "internshipLogState");
            return (Criteria) this;
        }

        public Criteria andInternshipLogStateLessThanOrEqualTo(Integer value) {
            addCriterion("internship_log_state <=", value, "internshipLogState");
            return (Criteria) this;
        }

        public Criteria andInternshipLogStateIn(List<Integer> values) {
            addCriterion("internship_log_state in", values, "internshipLogState");
            return (Criteria) this;
        }

        public Criteria andInternshipLogStateNotIn(List<Integer> values) {
            addCriterion("internship_log_state not in", values, "internshipLogState");
            return (Criteria) this;
        }

        public Criteria andInternshipLogStateBetween(Integer value1, Integer value2) {
            addCriterion("internship_log_state between", value1, value2, "internshipLogState");
            return (Criteria) this;
        }

        public Criteria andInternshipLogStateNotBetween(Integer value1, Integer value2) {
            addCriterion("internship_log_state not between", value1, value2, "internshipLogState");
            return (Criteria) this;
        }

        public Criteria andRemarksIsNull() {
            addCriterion("remarks is null");
            return (Criteria) this;
        }

        public Criteria andRemarksIsNotNull() {
            addCriterion("remarks is not null");
            return (Criteria) this;
        }

        public Criteria andRemarksEqualTo(String value) {
            addCriterion("remarks =", value, "remarks");
            return (Criteria) this;
        }

        public Criteria andRemarksNotEqualTo(String value) {
            addCriterion("remarks <>", value, "remarks");
            return (Criteria) this;
        }

        public Criteria andRemarksGreaterThan(String value) {
            addCriterion("remarks >", value, "remarks");
            return (Criteria) this;
        }

        public Criteria andRemarksGreaterThanOrEqualTo(String value) {
            addCriterion("remarks >=", value, "remarks");
            return (Criteria) this;
        }

        public Criteria andRemarksLessThan(String value) {
            addCriterion("remarks <", value, "remarks");
            return (Criteria) this;
        }

        public Criteria andRemarksLessThanOrEqualTo(String value) {
            addCriterion("remarks <=", value, "remarks");
            return (Criteria) this;
        }

        public Criteria andRemarksLike(String value) {
            addCriterion("remarks like", value, "remarks");
            return (Criteria) this;
        }

        public Criteria andRemarksNotLike(String value) {
            addCriterion("remarks not like", value, "remarks");
            return (Criteria) this;
        }

        public Criteria andRemarksIn(List<String> values) {
            addCriterion("remarks in", values, "remarks");
            return (Criteria) this;
        }

        public Criteria andRemarksNotIn(List<String> values) {
            addCriterion("remarks not in", values, "remarks");
            return (Criteria) this;
        }

        public Criteria andRemarksBetween(String value1, String value2) {
            addCriterion("remarks between", value1, value2, "remarks");
            return (Criteria) this;
        }

        public Criteria andRemarksNotBetween(String value1, String value2) {
            addCriterion("remarks not between", value1, value2, "remarks");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}